﻿<%@ Page Language="C#" MasterPageFile="~/SiteAdmin/MasterPage.master" AutoEventWireup="true" CodeFile="InventoryList.aspx.cs" Inherits="InventoryList" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="contentPlaceHolderID" Runat="Server">
    <asp:Panel ID="pnlGrid" runat="server" CssClass="centerPanel" Width="95%">
    <div class="searchDiv" > 
           <table cellspacing="0" class="searchTable">
            <tr>
                <td>
                物料编号：
                </td>
                <td>
                <asp:TextBox ID="S_GoodsCode" runat="server" CssClass="smallInput" MaxLength="64" ></asp:TextBox>
                </td>
                <td>
                物料名称：
                </td>
                <td>
                <asp:TextBox ID="S_Subject" runat="server" CssClass="smallInput" MaxLength="64" ></asp:TextBox>
                </td>
                <td>
                物料类型：
                </td>
                <td>
                <asp:TextBox ID="S_CategoryID" runat="server" CssClass="smallInput" MaxLength="64" ></asp:TextBox>
                </td>
                <td>
                    &nbsp;&nbsp;<asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text=" 查询 "  CssClass="searchButton" />
                </td>
            </tr>
            </table>
     </div>
    <div class="webPanelBorder" >
        <div class="webPanelCaption">当前库存信息</div>
        <div class="webPanelContent">
            <ofcc:GridView ID="gridView" runat="server" AutoGenerateColumns="False" 
                OnRowDataBound="gridView_RowDataBound" 
                onsplitpageindexchange="gridView_SplitPageIndexChange">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                           <asp:HiddenField ID="HiddenField1" runat="server" Value='<%#DataBinder.Eval(Container.DataItem,"GoodsID")%>' />
                        </ItemTemplate> 
                    </asp:TemplateField> 
                    <asp:HyperLinkField DataTextField="GoodsCode" HeaderText="物料编号" NavigateUrl="#" Target="_blank"/>
                    <asp:BoundField DataField="Subject" HeaderText="物料名称"/>
                    <asp:BoundField DataField="CategoryName" HeaderText="物料类型" />
                    <asp:BoundField DataField="GoodsMaker" HeaderText="品牌厂商" />
                    <asp:BoundField DataField="TypeModel" HeaderText="规格型号" />
                    <asp:BoundField DataField="GoodsUnit" HeaderText="单位" />
                    <asp:BoundField DataField="GoodsUpCount" HeaderText="库存上限" />
                    <asp:BoundField DataField="GoodsDownCount" HeaderText="库存下限" />
                    <asp:BoundField DataField="ActiveCount" HeaderText="可用数量" />
                    <asp:BoundField DataField="OldCount" HeaderText="旧料收回数量" />
                    <asp:BoundField DataField="BadCount" HeaderText="损耗/丢失数量" />
                </Columns>
            </ofcc:GridView>
         </div>
    </div> 
    </asp:Panel>
     <asp:Panel ID="pnlPop" runat="server" style="text-align:left; display:none; overflow:auto; width:250px; height:300px; background-color:#efefef; border:1px solid #ccc;" >
    <asp:UpdatePanel runat="server" ID="UpdatePanel1">
        <ContentTemplate>
                <asp:TreeView ID="treeView" runat="server" OnSelectedNodeChanged="treeView_SelectedNodeChanged">
                    <NodeStyle ImageUrl="~/App_Themes/DefaultSkin/ImageTree/folder.gif" CssClass="textleft" />
                    <SelectedNodeStyle BackColor="Silver" Font-Bold="True" />
                </asp:TreeView>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Panel>

<ajax:PopupControlExtender ID="PopupControlExtender1" runat="server"
    TargetControlID="S_CategoryID"
    PopupControlID="pnlPop"
    Position="Bottom" />

</asp:Content>

